package com.company.blog.web.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


public class testController {
    @Autowired
    private StringRedisTemplate stringRedisTemplate;




    public static void main(String[] args) {

//
//        Map<Object, Object> map =  redisTemplate.opsForHash().entries("type");
//        for (Map.Entry<Object, Object> entry : map.entrySet()) {
//            System.out.println(entry.getKey());
//            System.out.println(entry.getValue());
//        }
//
    }

}
